package com.example.testfrag;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class RightFragment extends Fragment 
{ 
    @Override 
    public void onCreate(Bundle savedInstanceState) 
    { 
        System.out.println("RightFragment--->onCreate"); 
        System.out.println("====="+getActivity().findViewById(R.id.left_layout).getVisibility() ); 
        super.onCreate(savedInstanceState); 
    } 
   
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
    { 
        System.out.println("RightFragment--->onCreateView"); 
        getActivity().findViewById(R.id.left_layout).getVisibility() ;
        System.out.println("getActivity().findViewById(R.id.left_layout).getVisibility() "); 
        return inflater.inflate(R.layout.rightfragment, container, false); 
    } 
}